package cn.zhf.shop.service;

import cn.zhf.shop.entity.CreditApply;
import cn.zhf.shop.entity.Message;
import cn.zhf.shop.entity.search.CreditApplySearch;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CreditApplyService {

    Message<?> insert(CreditApply c);

    Message<CreditApply> getById(Integer id);

    Message<List<CreditApply>> getAll();

    Message<?> updateStatusById(Integer id, Integer status);

    Message<List<CreditApply>> selectByPhone(String phone);

    int deleteByPrimaryKey(Integer id);

    int insertSelective(CreditApply record);

    CreditApply selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CreditApply record);

    int updateByPrimaryKey(CreditApply record);

    //条件搜索
    Message<List<CreditApply>> selectByIdAndBankNameAndUserNameAndPhoneAndResultAndUserIdcard2(Integer id, String bankName, String userName, String phone, Integer result, String userIdcard);

    //模糊搜索
    Message<List<CreditApply>> selectByIdAndBankNameAndUserNameAndPhoneAndResultAndUserIdcard(String str);

    Message mohuConditionSearch(CreditApplySearch c);
}

